package com.reform.service;

import com.reform.pojo.phase.DepartmentPhase;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mortale
 * @since 2021-10-25
 */
public interface IDepartmentPhaseService extends IService<DepartmentPhase> {

    /**
     * 绑定部门与批次的关系
     * @return
     */
    Result addDepartmentPhase(DepartmentPhase departmentPhase);

    /**
     * 更改部门与批次的关系
     * @param departmentPhase
     * @return
     */
    Result updateDepartmentPhase(DepartmentPhase departmentPhase);

    /**
     * 查看部门与批次的关系
     * @return
     */
    Result getDepartmentPhase();

    /**
     * 查看部门下批次的关系
     * @param depId
     * @return
     */
    Result getDepartmentPhaseByDepId(Integer depId);

    /**
     * 查看批次下部门的关系
     * @param phaseId
     * @return
     */
    Result getDepartmentPhaseByPhaseId(String phaseId);
}
